from .models import movie


def insert_movie():
    obj = movie()
    obj.name = '张三'
    obj.score = 9.9
    obj.price = 50
    obj.save()


def insert_movie_by_user(name,score,price):
    obj = movie()
    obj.name = name
    obj.score = score
    obj.price = price
    obj.save()

def get_movies():
    res = movie.objects.values_list()
    print(res)
    return res


def get_movies_count():
    res = movie.objects.values_list()
    print(res.size())
    return res
